﻿using System;

namespace Core
{
    public class ErrorEventArgs : EventArgs
    {
        private string _ErrorKey;
        private Exception _Exception;

        public ErrorEventArgs()
        {
        }

        public ErrorEventArgs(string errorKey, Exception ex)
        {
            this._ErrorKey = errorKey;
            this.Exception = ex;
        }

        public string ErrorKey
        {
            get { return _ErrorKey; }
            set { _ErrorKey = value; }
        }

        public Exception Exception
        {
            get { return _Exception; }
            set { _Exception = value; }
        }
    }
}